<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    function onSuccess(res) {
      console.log('onSuccess', res)
    }
  </script>
  <script src="http://127.0.0.1/api/get?callback=onSuccess&name=张智琦&age=18"></script>
</body>

</html>